﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

public class ImageLoad
{
    public static uint Load(string bundleName,Action<uint> callback)
    {
        uint assetID = LoadManager.Instance.LoadAsset(bundleName, (resID) =>
        {
            if (callback != null)
            {
                callback(resID);
            }
        });
        return assetID;
    }

    public static void UnLoad(uint assetID)
    {
        LoadManager.Instance.UnLoadAsset(assetID);
    }



}
